package com.xiaoshuidi.cloud.module.contract.api;


import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.framework.common.pojo.PageResult;
import com.xiaoshuidi.cloud.module.contract.enums.ApiConstants;
import com.xiaoshuidi.cloud.module.contract.vo.CustomerCompanyApiRespVO;
import com.xiaoshuidi.cloud.module.contract.vo.CustomerCompanyPageApiReqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = ApiConstants.SERVERNAME)
public interface CustomerCompanyApi {

    /**
     * 分页查询企业客户信息
     */
    @PostMapping(ApiConstants.PREFIX + "/get-customer-company")
    CommonResult<PageResult<CustomerCompanyApiRespVO>> getCustomerCompany(@RequestBody CustomerCompanyPageApiReqVO reqVO);

    @GetMapping(ApiConstants.PREFIX + "/get-by-id")
    CommonResult<CustomerCompanyApiRespVO> getById(@RequestParam("id") Long id);
}
